#include "../include/MonitorHolder.h"

MonitorHolder::MonitorHolder()
{
    //ctor
    currentMonitor = NULL;
}
Monitor* MonitorHolder::getMonitorById(string str)
{
    for(int i = 0; i < monitors.size(); i += 1)
    {
        if(monitors[i]->id == str)
            return monitors[i];
    }
    return NULL;
}
void MonitorHolder::addMonitor(Monitor *monitor)
{
    monitors.push_back(monitor);
    currentMonitor = monitor;
}
MonitorHolder::~MonitorHolder()
{
    //dtor
}
